package com.senven.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author gjh
 * @since 2022-08-31
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "Goods对象", description = "")
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "goodsid", type = IdType.AUTO)
    private Integer goodsid;

    private String branchname;

    @ApiModelProperty("商品名")
    private String goodsname;

    @ApiModelProperty("商品描述")
    private String descirbe;

    @ApiModelProperty("商品价格")
    @TableField("goods_price")
    private Integer goodsPrice;
    private Integer goods_price;

    @ApiModelProperty("商品是否下架,0表示正在出售，1表示已下架")
    private String status;

    @ApiModelProperty("商品图片地址")
    @TableField("goods_url")
    private String goods_url;
    private String goodsUrl;
    @ApiModelProperty("种类id")
    private Integer typeid;

    @TableField(exist = false)
    private Integer num;

}
